Mark Mail Message Read/Unread
AutomatR.Outlook.MarkMailAsReadUnread
The "Mark Mail Message Read/Unread" activity in AutomatR is part of the Outlook activities package, allowing the marking of an email message in Microsoft Outlook as read or unread. This activity provides flexibility in managing the read status of mail messages within automation workflows.
Properties
Name | Description |
---|---|
Input | |
Mail Message | The MailItem object representing the mail message in Outlook to mark as read or unread. It is a required argument. |
Mark As Read | Specifies whether to mark the mail message as read. If set to true, the mail message will be marked as read. |
Mark As UnRead | Specifies whether to mark the mail message as unread. If set to true, the mail message will be marked as unread. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Enter the wait time in seconds (Example: 5 seconds, i.e., 5) to start the activity. |
Output | |
Response | A boolean value indicating whether the marking of the mail message as read or unread was successful. It will be set to true if the operation was successful. |
How to use:
- Drag and drop the "Mark Mail Message Read/Unread" activity onto the workflow.
- Configure the properties by specifying the mail message, and choose whether to mark it as read or unread.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to mark the specified mail message as read or unread in Outlook.
Example:
Consider an example where the "Mark Mail Message Read/Unread" activity is used to mark a specific mail message as read:
Mark Mail Message Read/Unread:
Display Name: "Mark Important Email"
Mail Message: importantEmail
Mark As Read: true
Response: markingSuccessful
In this example, the activity marks the importantEmail
as read, and the result of the operation (success or failure) is stored in the Boolean variable markingSuccessful
for further handling in the workflow.